/**
 * Created by bian on 16-3-11.
 */
var sequelizex = require('../lib/sequelizex');
var shortDataTypes = sequelizex.DataTypes;
module.exports = function (sequelize, DataTypes){
    return sequelize.define('ads',{
        imgUrl:shortDataTypes.String(),
        /**
         * 1:正常
         * -1：删除
         * */
        status:shortDataTypes.Int(1)
    },{
        timestamps:false,
        defaultScope:{
            where:{
                status:1
            }
        }
    });
};